Skip to content

refactor(foundation-support): Move wire prep helpers#1165

Merged
leumor merged 1 commit intodevelopfrom
feature/pr-74-foundation-support-prep
Mar 24, 2026
Merged

refactor(foundation-support): Move wire prep helpers#1165
leumor merged 1 commit intodevelopfrom
feature/pr-74-foundation-support-prep

Conversation

@leumor
Copy link
Collaborator

@leumor leumor commented Mar 24, 2026

Summary

  • move the generic wire-adjacent helper set into :foundation-support without changing package names
  • add SerializationLimits and keep Serializer size constants as compatibility aliases so Buffer no longer depends on NewPacketFormat
  • remove the NodeStats dependency from InetAddressIpv6FirstComparator and claim the moved outputs in foundation-support selective ownership metadata

This is the PR-74 prep change for the future :interop-wire extraction. It does not create :interop-wire yet and does not change protocol semantics.

How to test

  • ./gradlew verifySelectiveLeafOwnershipMetadata
  • ./gradlew :foundation-support:compileJava
  • ./gradlew compileJava
  • ./gradlew test --tests "network.crypta.support.BitArrayTest" --tests "network.crypta.support.BufferTest" --tests "network.crypta.support.ByteBufferInputStreamTest" --tests "network.crypta.support.ShortBufferTest" --tests "network.crypta.support.SentTimeCacheTest" --tests "network.crypta.support.SparseBitmapTest" --tests "network.crypta.io.AddressIdentifierTest" --tests "network.crypta.support.transport.ip.HostnameUtilTest" --tests "network.crypta.support.transport.ip.IPUtilTest" --tests "network.crypta.support.io.InetAddressIpv6FirstComparatorTest" --tests "network.crypta.io.comm.MessageTest" --tests "network.crypta.io.comm.MessageTypeTest" --tests "network.crypta.io.comm.PeerTest"

Move the generic wire-adjacent helper set into foundation-support.

Add SerializationLimits for shared support-owned bounds, keep Serializer constants as compatibility aliases, remove the comparator dependency on NodeStats, and claim the moved outputs in selective leaf ownership metadata.

Verified with foundation-support/root compilation and the focused helper and io.comm tests for the moved surface.
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
6.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@leumor leumor merged commit d9f6681 into develop Mar 24, 2026
7 of 8 checks passed
@leumor leumor deleted the feature/pr-74-foundation-support-prep branch March 24, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant